import { BaseController } from "sap/ui/demo/nav/controller/BaseController";
import JSONModel from "sap/ui/model/json/JSONModel";

/**
 * @namespace sap.ui.demo.nav.controller
 */
export default class ResumeNotes extends BaseController {
  onInit(): void {
    const oModel = new JSONModel();
    oModel.setProperty("/hello", "Hello World!");

    this.view?.setModel(oModel, "view");
  }

  onDisplayNotFound() {
    this.router.getTargets()?.display("notFound", {
      fromTarget: "resumeTabNotes",
    });
  }

  onNavToEmployees() {
    this.router.navTo("employeeList");
  }
}
